home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 1
/
Gold Medal Software Volume 1 (Gold Medal) (1994).iso
/
prog
/
dasv10_.arj
/
DETCTDAM.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-08-09
|
309 b
|
15 lines
// dice.lib function detect_damage()
#include <conio.h>
#include <iostream.h>
void detect_damage(int dice,int damage)
{
clrscr();
if (damage == 0)
cout<<dice<<"D6 Killing damage";
if (damage == 1)
cout<<dice<<"D6 Normal damage ";
if (damage == 2)
cout<<dice<<"D6 Regular roll ";
}